﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SisVet.Utils
{
    public class Utils
    {
        public static void LimparCampos(Form controles) // para nao precisar ficar instanciando ele, usamos o static
        {
            foreach (Control ctl in controles.Controls)
            {                
                if (ctl is TextBox)
                    ctl.Text = String.Empty;

            }
        }
    }
}
